package com.hxd.mall.module.usercenter.bindorder

import com.hxd.mall.network.base.BaseRequest
import com.hxd.mall.network.service.ManagerFunctionApi
import com.hxd.mall.utils.local.RequestUtil
import com.hxd.mall.utils.open.ToastUtil
import java.util.*
import javax.inject.Inject

class BindPresenter @Inject constructor(var mView: IBindView):IBindPresenter{
    //绑定订单
    override fun bindOrder(orderId: String) {
        BaseRequest.request(ManagerFunctionApi.mIMeFunctionApi.bindOrder(orderId,"tbk", RequestUtil.getRequestBody(TreeMap())), mView, {
            ToastUtil.showToast(it.msg ?: "")
        }, {
            ToastUtil.showToast(it.msg ?: "")
        })
    }

}